package top.csjss.hospital.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import top.csjss.hospital.entity.OutPatientType;
import top.csjss.hospital.entity.OutPatientTypeExample;

public interface OutPatientTypeMapper {
    long countByExample(OutPatientTypeExample example);

    int deleteByExample(OutPatientTypeExample example);

    int deleteByPrimaryKey(Integer outPatientId);

    int insert(OutPatientType record);

    int insertSelective(OutPatientType record);

    List<OutPatientType> selectByExample(OutPatientTypeExample example);

    OutPatientType selectByPrimaryKey(Integer outPatientId);

    int updateByExampleSelective(@Param("record") OutPatientType record, @Param("example") OutPatientTypeExample example);

    int updateByExample(@Param("record") OutPatientType record, @Param("example") OutPatientTypeExample example);

    int updateByPrimaryKeySelective(OutPatientType record);

    int updateByPrimaryKey(OutPatientType record);

    /**
     * 查询项目
     * @param projectName
     * @return
     */
    List<OutPatientType> selectProject(String projectName);

    /**
     * 根据项目名查询价格
     * @param durgname
     * @return
     */
    Double findPriceByName(String durgname);

    /**
     * 根据项目名查询是否需要检查
     * @param durgname
     * @return
     */
    Integer findOstateByName(String durgname);
}
